﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace BanmaytinhDAL
{
    public class LoaihangInfo
    {
        private string _Maloai;
        private string _Tenloai;



        public string Maloai { get { return _Maloai; } set { _Maloai = value; } }
        public string Tenloai{ get { return _Tenloai; } set { _Tenloai = value; } }


        public LoaihangInfo DonvitinhIDataReader(IDataReader dr)
        {
            BanmaytinhDAL.LoaihangInfo obj = new BanmaytinhDAL.LoaihangInfo();
            obj.Maloai = (dr["Maloai"] is DBNull) ? string.Empty : dr["Maloai"].ToString();
            obj.Tenloai = (dr["Tenloai"] is DBNull) ? string.Empty : dr["Tenloai"].ToString();

            return obj;


        }
    }
}
